From aa4b001985b8b7948cbda3ae549f28e876c2488f Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 16 Apr 2007 11:36:40 +0100 Subject: [PATCH] xen x86: Fix PV guest destruction. Signed-off-by: Dexuan Cui --- xen/arch/x86/domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 612fec0876..778b08d628 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -1543,7 +1543,8 @@ void domain_relinquish_resources(struct domain *d) /* Free page used by xen oprofile buffer. */ free_xenoprof_pages(d); - hvm_domain_relinquish_resources(d); + if ( is_hvm_domain(d) ) + hvm_domain_relinquish_resources(d); } void arch_dump_domain_info(struct domain *d) -- 2.30.2